package kr.hkit.powerjava.project_cafe;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class Panel_Input extends JPanel {
	private JTextField tf;
	private JLabel lbl;
	
	
	
	public Panel_Input() {
		initialize();
	}

	public Panel_Input(String lblStr) {
		initialize();
		lbl.setText(lblStr);

	}

	private void initialize() {
		//setLayout(new GridLayout(0, 2, 0, 0));
		
		lbl = new JLabel("New labal");
		lbl.setHorizontalAlignment(SwingConstants.CENTER);
		add(lbl);
		
		tf = new JTextField();
		add(tf);
		tf.setColumns(10);
	}
	
	
	public JTextField getTf() {
		return tf;
	}

	public void setTf(String text) {
		this.tf.setText(text);
	}
	

}
